1
//------------------------------------------------------------------------------
3 // This code was generated by a tool.
5 // Changes to this file may cause incorrect behavior and will be lost if
6 // the code is regenerated.
8 //------------------------------------------------------------------------------
10 using DslModeling
= global::Microsoft
.VisualStudio
.Modeling
;
11 using DslShell
= global::Microsoft
.VisualStudio
.Modeling
.Shell
;
12 using DslDiagrams
= global::Microsoft
.VisualStudio
.Modeling
.Diagrams
;
14 namespace Fabrikam
.Dsl
.TestValidation
17 /// Double-derived class to allow easier code customization.
19 internal partial class TestValidationExplorer
: TestValidationExplorerBase
22 /// Constructs a new TestValidationExplorer.
24 public TestValidationExplorer(global::System
.IServiceProvider serviceProvider
)
25 : base(serviceProvider
)
31 /// Control hosted in the TestValidationExplorerToolWindow.
33 internal abstract class TestValidationExplorerBase
: DslShell
::ModelExplorerTreeContainer
36 /// Constructs a new TestValidationExplorerBase.
38 protected TestValidationExplorerBase(global::System
.IServiceProvider serviceProvider
) : base(serviceProvider
)
46 /// Create IElementVisitor
48 /// <returns>IElementVisitor</returns>
49 protected override DslModeling
::IElementVisitor
CreateElementVisitor()
51 return new DslShell
::ExplorerElementVisitor(this);
55 /// Specifies the context menu that should be shown for the model explorer.
57 protected override global::System
.ComponentModel
.Design
.CommandID ContextMenuCommandId
61 return Constants
.TestValidationExplorerMenu
;
66 /// Returns the root elements domain class Id. The is the very top level tree node in the TreeView
68 protected override global::System
.Guid RootElementDomainClassId
70 get { return global::Fabrikam.Dsl.TestValidation.Family.DomainClassId; }
74 /// Returns the root elements to be displayed in the explorer.
76 protected override global::System
.Collections
.IList
FindRootElements(DslModeling
::Store store
)
78 return store
.ElementDirectory
.FindElements( this.RootElementDomainClassId
);